import request from '@/utils/request'

// 查询考试题库列表
export function listExamRepo(query) {
  return request({
    url: '/business/examRepo/list',
    method: 'get',
    params: query
  })
}

// 查询考试题库所有列表
export function listAllExamRepo(query) {
  return request({
    url: '/business/examRepo/listAll',
    method: 'get',
    params: query
  })
}

// 查询考试题库详细
export function getExamRepo(id) {
  return request({
    url: '/business/examRepo/getInfo/' + id,
    method: 'get'
  })
}

// 新增考试题库
export function addExamRepo(data) {
  return request({
    url: '/business/examRepo/add',
    method: 'post',
    data: data
  })
}

// 修改考试题库
export function updateExamRepo(data) {
  return request({
    url: '/business/examRepo/edit',
    method: 'post',
    data: data
  })
}

// 删除考试题库
export function delExamRepo(id) {
  return request({
    url: '/business/examRepo/remove/' + id,
    method: 'get'
  })
}
